import request from '@/utils/request'
export function getMainStorage(params) {
    return request({
        url: '/operate/warehouse/getStorageProinfoList',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        'pageNum': params.pageNum,
        'pageSize': params.pageSize
        },
        method: 'get',
        params:params
    })
}
export function getcangkuList(proId) {
    return request({
        url: '/operate/warehouse/getWarehouseList?proId='+proId,
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'get',
    })
}
export function getshangpinList(params) {
    return request({
        url: '/operate/proInfos/queryProInfo',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        'pageNum': params.pageNum,
        'pageSize': params.pageSize
        },
        method: 'get',
        params:params
    })
}
export function addshangpinList(data) {
    return request({
        url: '/operate/storage/updateNumberAndSave',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'post',
        data
    })
}

export function buhuoList(data) {
    return request({
        url: '/operate/warehouse/saveStorageAddRec',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'post',
        data
    })
}
export function seizureList(data) {
    return request({
        url: '/operate/warehouse/cutStorageAddRec',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'post',
        data
    })
}

export function getSeasoning(data) {
    return request({
        url: '/operate/warehouse/getWarehouseListAndAmount',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        'page-num': data.pageNum,
        'page-size': data.pageSize
        },
        method: 'post',
        data
    })
}
export function seasoningCondiments(data) {
    return request({
        url: '/operate/warehouse/exchange',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'post',
        data
    })
}

export function outExchange(data) {
    return request({
        url: '/operate/warehouse/outExchange',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'post',
        data
    })
}
export function getRecordList(params) {
    return request({
        url: '/operate/warehouse/getWarehouseByProId',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        'pageNum': params.pageNum,
        'pageSize': params.pageSize
        },
        method: 'get',
        params:params
    })
}
export function getSumList() {
    return request({
        url: '/operate/depotManage/getSum',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'get',
    })
}
export function getStorageAddRecList(params) {
    return request({
        url: '/operate/warehouse/getStorageAddRecList',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        'pageNum': params.pageNum,
        'pageSize': params.pageSize
        },
        method: 'get',
        params:params
    })
}
export function getProcatList() {
    return request({
      url: '/operate/warehouse/getProcatList',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      },
      method: 'get',
    })
  }